package pt.utl.ist.project_ccu;

import pt.utl.ist.project_ccu.android_libs.MyProgressDialog;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.Window;

public class WiFiLoading extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_wi_fi_loading);
		MyProgressDialog pd = new MyProgressDialog(this);
		pd.setMessage("Connecting. Please wait...");
		pd.show();
	}
	
	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {
	    if (keyCode == KeyEvent.KEYCODE_BACK) {
	    	startActivity(new Intent (getApplicationContext(), PhotosAddScreen.class));
	        //moveTaskToBack(true);
	        return true;
	    }
	    return super.onKeyDown(keyCode, event);
	}
}
